package com.jeespring.common.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Title: Page
 * @Description:
 * @Author 张朝阳
 * @Date 2019/5/1 14:42
 */

@Data
public class Page<T> implements Serializable {
    private Long total;

    private int pageSize;

    private int pageNum;

    private List<T> rows;

    private int code;

    private int message;


    public Page() {
    }

    public Page(Long total, int pageSize, int pageNum, List<T> rows) {
        this.total = total;
        this.pageSize = pageSize;
        this.pageNum = pageNum;
        this.rows = rows;
    }

}
